gtk4.git
10 years agoAvoid an unnecessary check
Matthias Clasen [Fri, 19 Jun 2015 04:34:28 +0000 (00:34 -0400)]
Avoid an unnecessary check

We create the indexed_locations array unconditionally.

10 years agoGtkSearchEngine: Avoid a crash
Matthias Clasen [Fri, 19 Jun 2015 04:32:49 +0000 (00:32 -0400)]
GtkSearchEngine: Avoid a crash

Add a destroy notify for the data of the callback, so we don't
end up leaving a dangling pointer behind for a short while if
the native engine is finalized before the simple one. This
was showing up as crash when typing and backspacing in the
search entry of the file chooser.

10 years agoGtkSearchEngine: Avoid crawling indexed locations
Matthias Clasen [Fri, 19 Jun 2015 04:12:46 +0000 (00:12 -0400)]
GtkSearchEngine: Avoid crawling indexed locations

Implement the IsIndexed callback for tracker. This requires
reading settings of the tracker file miner. We are careful
to avoid a hard dependency on the tracker schemas.

10 years agoGtkSearchEngine: Avoid crawling indexed locations
Matthias Clasen [Fri, 19 Jun 2015 04:11:01 +0000 (00:11 -0400)]
GtkSearchEngine: Avoid crawling indexed locations

Add a framework to the simple engine that allows to skip
locations which are indexed by the native engine.

10 years agoGtkSearchEngine: Initialize recursive flag
Matthias Clasen [Fri, 19 Jun 2015 04:06:14 +0000 (00:06 -0400)]
GtkSearchEngine: Initialize recursive flag

Otherwise all our searches become non-recursive, which was not
the intention.

10 years agoGtkSearchEngine: Add recursive flag
Matthias Clasen [Fri, 19 Jun 2015 02:44:11 +0000 (22:44 -0400)]
GtkSearchEngine: Add recursive flag

Add a flag for recursive search, and implement non-recursive
search in both the tracker and simple search engines.

This is not currently used in the file chooser.

10 years agoRemove an unused field
Matthias Clasen [Fri, 19 Jun 2015 02:40:49 +0000 (22:40 -0400)]
Remove an unused field

10 years agoGtkSearchEngine: Remove unused code
Matthias Clasen [Thu, 18 Jun 2015 21:08:09 +0000 (17:08 -0400)]
GtkSearchEngine: Remove unused code

Nothing ever uses or emits the hits-subtracted signal.
Nautilus dropped it a few years ago. Time to follow suit.

10 years agoUse infos from search engine instead of getting them again
Matthias Clasen [Thu, 18 Jun 2015 19:18:30 +0000 (15:18 -0400)]
Use infos from search engine instead of getting them again

When the search engine provides hits with GFileInfo, use that
to add the hits to the model directly, without going through
another round of async get_info calls.

To do this, we add a batched variant of the
_gtk_file_system_model_update_file call that takes lists of
GFiles and GFileInfos. Again, we can avoid repeated resorting
that happens when the files are updated individually.

10 years agoFix an oversight in the previous commit
Matthias Clasen [Thu, 18 Jun 2015 19:14:54 +0000 (15:14 -0400)]
Fix an oversight in the previous commit

We lost the line marking the search model as non-empty, causing
us to show the 'no results' page despite there being results.

10 years agoRequest the right attributes in the simple search engine
Matthias Clasen [Thu, 18 Jun 2015 18:37:23 +0000 (14:37 -0400)]
Request the right attributes in the simple search engine

This change makes it so that the file info passed along
from the simple search engine has all the attributes that
the file system model wants.

10 years agosearch engine: Pass file infos along for hits
Matthias Clasen [Thu, 18 Jun 2015 18:31:02 +0000 (14:31 -0400)]
search engine: Pass file infos along for hits

10 years agofile chooser: Use batched insertion for search results
Matthias Clasen [Thu, 18 Jun 2015 16:20:21 +0000 (12:20 -0400)]
file chooser: Use batched insertion for search results

This helps avoiding excess work when procesing many search
results, as typically happens with short search strings
and recursive search.

https://bugzilla.gnome.org/show_bug.cgi?id=751169

10 years agofile system model: Add batched insertion
Matthias Clasen [Thu, 18 Jun 2015 16:19:06 +0000 (12:19 -0400)]
file system model: Add batched insertion

Add a batched version of gtk_file_system_model_add_and_query_file
that takes a list of files and avoids resorting the model for each
individual insertion. The querying is still done one-file-at-a-time,
so more optimization is certainly possible.

10 years agoRevert "window: Reinstate logic for should_use_csd()"
Emmanuele Bassi [Thu, 18 Jun 2015 15:10:36 +0000 (16:10 +0100)]
Revert "window: Reinstate logic for should_use_csd()"

This reverts commit f043fd532dc66a7abb1d4ea57c666655330cc429.

The whole point of having can_use_csd() return TRUE when GTK_CSD is
unset is to use it inside enable_csd().

https://bugzilla.gnome.org/show_bug.cgi?id=751140

10 years agowindow: Reinstate logic for should_use_csd()
Emmanuele Bassi [Thu, 18 Jun 2015 13:48:58 +0000 (14:48 +0100)]
window: Reinstate logic for should_use_csd()

The old should_use_csd() function would return FALSE if the GTK_CSD
environment variable is unset; the change in commit c5e5ee67490e7e7
made it return TRUE if GTK_CSD is unset. This has a cascade effect
on the window size, which causes invalid rectangles to bubble down
to Pixman.

https://bugzilla.gnome.org/show_bug.cgi?id=751140

10 years agogtkdialog: Remove 2px border
Timm Bäder [Thu, 18 Jun 2015 13:37:23 +0000 (15:37 +0200)]
gtkdialog: Remove 2px border

10 years agomessagedialog: remove 2px border
Timm Bäder [Thu, 18 Jun 2015 13:36:03 +0000 (15:36 +0200)]
messagedialog: remove 2px border

10 years agofilechooserdialog: Remove space between window and content
Timm Bäder [Thu, 18 Jun 2015 09:55:29 +0000 (11:55 +0200)]
filechooserdialog: Remove space between window and content

Was removed in 232d6f84f0495e9effedc16d700fc13f5a6e302.

10 years agoAdwaita: indentation
Jakub Steiner [Thu, 18 Jun 2015 11:08:45 +0000 (13:08 +0200)]
Adwaita: indentation

- lapo was shouting at me.

10 years agoAdwaita: volume button and scale button padding
Lapo Calamandrei [Thu, 18 Jun 2015 10:46:00 +0000 (12:46 +0200)]
Adwaita: volume button and scale button padding

I was assuming that GtkVolumeButton and GtkScaleButton could only
contain a icon, now they get the image-button padding by default,
but if the text-button class is applied it is not overridden.

10 years agoAdwaita: scale popup quick fix
Lapo Calamandrei [Thu, 18 Jun 2015 10:33:04 +0000 (12:33 +0200)]
Adwaita: scale popup quick fix

10 years agoAdwaita: markup cleanup
Jakub Steiner [Thu, 18 Jun 2015 10:01:12 +0000 (12:01 +0200)]
Adwaita: markup cleanup

- move touch selection selectors to its own section
- use scss style markup for .button common elsewhere
  (more compact and legible)

10 years agoHC: touch text selection styling
Jakub Steiner [Wed, 17 Jun 2015 11:05:02 +0000 (13:05 +0200)]
HC: touch text selection styling

- sync with Adwaita
- try to avoid using image assets

https://bugzilla.gnome.org/show_bug.cgi?id=750883

10 years agoFix return value error in _gtk_window_get_popover_parent
Ting-Wei Lan [Thu, 18 Jun 2015 04:14:05 +0000 (12:14 +0800)]
Fix return value error in _gtk_window_get_popover_parent

10 years agoCosmetic change
Matthias Clasen [Thu, 18 Jun 2015 00:24:29 +0000 (20:24 -0400)]
Cosmetic change

10 years agoGtkPlacesSidebar: Fix rtl appearance
Matthias Clasen [Thu, 18 Jun 2015 00:07:24 +0000 (20:07 -0400)]
GtkPlacesSidebar: Fix rtl appearance

Apply the necessary directional variants for asymmetric
css padding.

https://bugzilla.gnome.org/show_bug.cgi?id=751084

10 years agooverlay: remove gtk_overlay_add_pass_through_overlay()
Cosimo Cecchi [Tue, 16 Jun 2015 19:02:41 +0000 (12:02 -0700)]
overlay: remove gtk_overlay_add_pass_through_overlay()

The API to access this functionality will be the setter we just added in
the previous commit.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agooverlay: add setters and getters for pass-through child property
Cosimo Cecchi [Tue, 16 Jun 2015 19:01:30 +0000 (12:01 -0700)]
overlay: add setters and getters for pass-through child property

This will make the API easier to use from bindings too.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agodocs: add new GtkOverlay methods to gtk3-sections.txt
Cosimo Cecchi [Tue, 16 Jun 2015 18:58:46 +0000 (11:58 -0700)]
docs: add new GtkOverlay methods to gtk3-sections.txt

https://bugzilla.gnome.org/show_bug.cgi?id=750568

10 years agoconfigure: test have_docbook_style != yes, not have_docbook_dtd
Alexander Larsson [Wed, 17 Jun 2015 15:35:18 +0000 (17:35 +0200)]
configure: test have_docbook_style != yes, not have_docbook_dtd

10 years agofile chooser: Drop unused variables
Matthias Clasen [Wed, 17 Jun 2015 10:09:59 +0000 (06:09 -0400)]
file chooser: Drop unused variables

10 years agofile chooser: Use a revealer
Matthias Clasen [Wed, 17 Jun 2015 03:46:34 +0000 (23:46 -0400)]
file chooser: Use a revealer

Use a revealer to manage the visibility of the header area where
we show the pathbar, the location entry or search. This is a bit
smoother, and makes search more similar to a search bar.

10 years agotexthandle: Avoid double rendering of background/frame
Carlos Garnacho [Wed, 17 Jun 2015 13:58:55 +0000 (15:58 +0200)]
texthandle: Avoid double rendering of background/frame

gtk_render_handle() already renders background/frame itself, avoid
doing this twice.

10 years agogtkmain: Ignore grab for events in child popovers
Carlos Garnacho [Mon, 15 Jun 2015 12:07:40 +0000 (14:07 +0200)]
gtkmain: Ignore grab for events in child popovers

Popovers may be spawn when there's GTK+ grabs somewhere else (eg.
text selection popover/handles in an entry in a modal popover). When
this happens, events go to the grab widget (in this case the modal
popover) and are effectively ignored by the event widget, even though
it's can be conceptually a child of the grab widget.

To get away with this, tweak a bit gtk_main_do_event(), so events going
to popovers that are related to grab_widget or a child of it are received,
as it would happen with regular children of grab_widget.

https://bugzilla.gnome.org/show_bug.cgi?id=750993

10 years agowindow: Add concept of popover "parent"
Carlos Garnacho [Mon, 15 Jun 2015 12:05:00 +0000 (14:05 +0200)]
window: Add concept of popover "parent"

This will be the widget that the popover relates to (::pointing-to in
GtkPopover, ::parent in GtkTextHandle).

Additional API to check the popover/parent relationship between widgets
has been added, which will be useful wherever this is necessary in a
generic manner.

https://bugzilla.gnome.org/show_bug.cgi?id=750993

10 years agoFix return value error in gdk_window_set_pass_through
Ting-Wei Lan [Wed, 17 Jun 2015 10:01:48 +0000 (18:01 +0800)]
Fix return value error in gdk_window_set_pass_through

https://bugzilla.gnome.org/show_bug.cgi?id=751099

10 years agowayland: Always request transient commit when mapping subsurface
Jonas Ådahl [Wed, 17 Jun 2015 09:31:19 +0000 (17:31 +0800)]
wayland: Always request transient commit when mapping subsurface

A subsurface positioning operation only takes effect when the parent
surfaces state is applied. If a subsurface is mapped and positioned, but
the parent surface state is not immediately committed, the relative
position of the subsurface is undefined and may be placed incorrectly.

To avoid this undefined state, always request that the parent surface
should be committed after mapping a subsurface so that the position
operation will take effect.

https://bugzilla.gnome.org/show_bug.cgi?id=751098

10 years agotreeview: always pixelcache widget contents
Christian Hergert [Tue, 16 Jun 2015 23:50:44 +0000 (16:50 -0700)]
treeview: always pixelcache widget contents

GtkTreeView has a particularly expensive drawing path. This can cause
issues when part of animated widget sequences. Caching the content while
a model is attached helps reduce the number of full redraws during
exposure greatly.

https://bugzilla.gnome.org/show_bug.cgi?id=751082

10 years agopixelcache: allow widgets to always require cached content
Christian Hergert [Tue, 16 Jun 2015 23:46:24 +0000 (16:46 -0700)]
pixelcache: allow widgets to always require cached content

Some widgets have very expensive drawing paths. So caching the content
can be useful even when not scrolling.

This can help speed up widgets that are part of animation sequences and
thereby go through spurious expose events.

https://bugzilla.gnome.org/show_bug.cgi?id=751082

10 years agoUpdated Hebrew translation
Yosef Or Boczko [Wed, 17 Jun 2015 00:24:12 +0000 (03:24 +0300)]
Updated Hebrew translation

10 years agogdkwindow: avoid updating background pattern if it matches previous
Christian Hergert [Tue, 16 Jun 2015 21:40:09 +0000 (14:40 -0700)]
gdkwindow: avoid updating background pattern if it matches previous

Background patterns are often updated when style changes. In many cases,
the new pattern will match the previous. We can optimize out the
invalidation that will occur upon resetting the same pattern.

10 years agogtkplacessidebar: improve variable name
Carlos Soriano [Tue, 16 Jun 2015 14:54:24 +0000 (16:54 +0200)]
gtkplacessidebar: improve variable name

10 years agogtkplacessidebar: Remove some old comments
Carlos Soriano [Tue, 16 Jun 2015 14:25:33 +0000 (16:25 +0200)]
gtkplacessidebar: Remove some old comments

We didn't made up our minds until now from some of them, and for
the others no progress has been made or bugs reported, so probably
they are fine.

10 years agogtkplacesidebar: use GtkListBox
Carlos Soriano [Wed, 6 May 2015 21:07:17 +0000 (23:07 +0200)]
gtkplacesidebar: use GtkListBox

We were using GTkTreeView in a simple list. Also, as we know,
GtkCellRenderers are not the best way to theme and manipulate
widgets.

So instead use a GtkListBox to modernize the GtkPlacesSidebar,
and in the way clean up some parts of the code (like headings)
which were not used anymore.
Also we don't use a model anymore, since the data is simple
enough to manage it in a subclass of the row itself.

10 years agotheme: decrease list row transition
Carlos Soriano [Mon, 8 Jun 2015 17:01:45 +0000 (19:01 +0200)]
theme: decrease list row transition

It was somewhat annoying given the "trace" of it. Decrease
the time to avoid too much "trace"

10 years agogtkfilechooserwidget: show drop hints on gtkplacessidebar
Carlos Soriano [Sat, 11 Apr 2015 15:36:41 +0000 (17:36 +0200)]
gtkfilechooserwidget: show drop hints on gtkplacessidebar

Now with the API addition on gtkplacessidebar, we can show some
hints for the drop targets.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: make insensitive invalid drop targets
Carlos Soriano [Mon, 11 May 2015 17:12:32 +0000 (19:12 +0200)]
gtkplacessidebar: make insensitive invalid drop targets

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: add new bookmark icon
Carlos Soriano [Sat, 11 Apr 2015 15:46:59 +0000 (17:46 +0200)]
gtkplacessidebar: add new bookmark icon

Following design mockups

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacesidebar: remove obsolete drop state
Carlos Soriano [Thu, 11 Jun 2015 16:55:24 +0000 (18:55 +0200)]
gtkplacesidebar: remove obsolete drop state

We didn't use those for some time now.

10 years agogtkplacessidebar: add API for show drop hints
Carlos Soriano [Sat, 11 Apr 2015 15:35:23 +0000 (17:35 +0200)]
gtkplacessidebar: add API for show drop hints

It is convenient to allow applications to show all the drop
targets at once. This improves the user experience with drag
an drop.

The new API allows the application to set the gtkplacessidebar
in a mode where invalid drop targets are insensitive and it
adds a "new bookmark" row. This mode is intended to be set
when the application is aware of a dnd operation and needs to
be stopped kwhen the application is aware that dnd operation
was cancelled or ended in a different part than gtkplacesisdebar.

The context parameter is unused in this patch, but will be
used in next patches when the sidebar will use a GtkListBox.
The reason of being unused now is just convenience.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agogtkplacessidebar: new bookmark row only at first position
Carlos Soriano [Sat, 11 Apr 2015 11:53:18 +0000 (13:53 +0200)]
gtkplacessidebar: new bookmark row only at first position

Following the new mockups, put the new bookmark row always
in the first position, so it's easier to drop an item.

https://bugzilla.gnome.org/show_bug.cgi?id=747793

10 years agoDeal with events from wrong display
Matthias Clasen [Mon, 15 Jun 2015 23:46:33 +0000 (19:46 -0400)]
Deal with events from wrong display

GtkInspector is opening a separate display connection, which makes
it more likely that gtk_get_current_event() returns an event from
the "wrong" display.

10 years agoGtkMenuButton: Make programmatic toggling work again
Matthias Clasen [Mon, 15 Jun 2015 23:42:47 +0000 (19:42 -0400)]
GtkMenuButton: Make programmatic toggling work again

This was broken in 0796d7b6ff9393746d.

https://bugzilla.gnome.org/show_bug.cgi?id=751018

10 years agoGtkMenuButton: Avoid direct button access
Matthias Clasen [Mon, 15 Jun 2015 22:54:13 +0000 (18:54 -0400)]
GtkMenuButton: Avoid direct button access

We were getting ourselves in trouble by casting touch events
to GdkEventButton and poking directly at their internals. Instead,
use GdkEvent API to get what we need.

This fixes a crash when using the gear menu in epiphany with
touch. The same crash also occurred in testmenubutton.

10 years agogtkoverlay: Fix issues with remove
Alexander Larsson [Mon, 15 Jun 2015 14:32:50 +0000 (16:32 +0200)]
gtkoverlay: Fix issues with remove

The iteration now progresses past a delete, so make sure we iterate
safely. Also, don't chain up if we removed a child.

10 years agotestoverlay: Fix indentation
Alexander Larsson [Mon, 15 Jun 2015 09:00:40 +0000 (11:00 +0200)]
testoverlay: Fix indentation

10 years agotestoverlay: Add test for overlay z ordering
Alexander Larsson [Tue, 9 Jun 2015 08:23:19 +0000 (10:23 +0200)]
testoverlay: Add test for overlay z ordering

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agotestoverlay: Fix test by using add_pass_through_overlay
Alexander Larsson [Mon, 8 Jun 2015 14:30:40 +0000 (16:30 +0200)]
testoverlay: Fix test by using add_pass_through_overlay

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agoGtkOverlay: Add support for input pass-through overlays
Alexander Larsson [Tue, 9 Jun 2015 08:26:31 +0000 (10:26 +0200)]
GtkOverlay: Add support for input pass-through overlays

For these widgets we set pass-through on the child window so that
input over these widgets (that are not on a child input window) goes
to the window below the overlay.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agooverlay: Add reorder_overlay()
Alexander Larsson [Mon, 8 Jun 2015 14:28:32 +0000 (16:28 +0200)]
overlay: Add reorder_overlay()

This allows you to control the z-ordering of overlay children

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agogdk: Add gdk_window_set_pass_through
Alexander Larsson [Mon, 8 Jun 2015 13:36:43 +0000 (15:36 +0200)]
gdk: Add gdk_window_set_pass_through

An pass_through window is something you can draw in but does not
affect event handling. Normally if a window has with no event mask set
for a particular event then input events in it go to its parent window
(X11 semantics), whereas if pass_through is enabled the window below
the window will get the event. The later mode is useful when the
window is partially transparent. Note that an pass-through windows can
have child windows that are not pass-through so they can still get events
on some parts.

Semantically, this behaves the same as an regular window with
gdk_window_set_child_input_shapes() called on it (and re-called any
time a child is changed), but its far more efficient and easy to use.

This allows us to fix the testoverlay input stacking test.

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agotestoverlay: Add new input stacking test
Alexander Larsson [Mon, 8 Jun 2015 13:31:02 +0000 (15:31 +0200)]
testoverlay: Add new input stacking test

In this case we have a bunch of interactive main children
of the overlay, and then a centered overlay that contains both
non-interactive (labels) and interactive (entry) widgets.

This shows off a problem where the non-interactive parts (the labels)
steals input from the overlay main children (breaks button click and
hover effects).

https://bugzilla.gnome.org/show_bug.cgi?id=750568

https://bugs.freedesktop.org/show_bug.cgi?id=90917

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 15 Jun 2015 08:55:00 +0000 (08:55 +0000)]
Updated Spanish translation

10 years agoUpdated Greek translation
Dimitris Spingos [Mon, 15 Jun 2015 08:14:00 +0000 (11:14 +0300)]
Updated Greek translation

10 years agostylecontext: Change fallback behavior on state mismatch
Benjamin Otte [Mon, 15 Jun 2015 02:30:50 +0000 (04:30 +0200)]
stylecontext: Change fallback behavior on state mismatch

For functions that take state flags as an argument we need to special
case the situation where the passed in flags don't match the current
state.

Previously we would create a copy of the style info, change its state
and do the lookup from there.

Now that GtkCssNode has replaced style infos, this doesn't work as well
anymore as copying a GtkCssNode is not possible.
However, unike style infos, GtkCssNodes are instant-apply, so we don't
need to copy anymore, we can just change the state of the node.

This causes some invalidations to be queued, but we can take that
performance hit as this is fallback code.

https://bugzilla.redhat.com/show_bug.cgi?id=1228852

10 years agowidget-factory: Make the circular button do something
Matthias Clasen [Mon, 15 Jun 2015 01:37:58 +0000 (21:37 -0400)]
widget-factory: Make the circular button do something

10 years agotestassistant: Remove padding from the filechooser page
Matthias Clasen [Mon, 15 Jun 2015 01:30:01 +0000 (21:30 -0400)]
testassistant: Remove padding from the filechooser page

This tests the new assistant api to remove padding from
pages.

10 years agoGtkAssistant: Add a way to have pages without padding
Matthias Clasen [Mon, 15 Jun 2015 01:29:09 +0000 (21:29 -0400)]
GtkAssistant: Add a way to have pages without padding

This can be useful when embedding complex widgets like
a file chooser as a page.

https://bugzilla.gnome.org/show_bug.cgi?id=750631

10 years agoAdd a filechooser-in-assistant example
Matthias Clasen [Mon, 15 Jun 2015 01:05:49 +0000 (21:05 -0400)]
Add a filechooser-in-assistant example

This is one of the cases where one wants a page without
any padding.

10 years agoGtkAssistant: Redo page margins
Matthias Clasen [Mon, 15 Jun 2015 01:04:15 +0000 (21:04 -0400)]
GtkAssistant: Redo page margins

Instead of having padding outside the notebook containing
all pages, put each page in an extra box and add the padding
there. This is in preparation for allowing pages without
padding.

10 years agoassistant: Drop hardcoded padding
Matthias Clasen [Fri, 12 Jun 2015 10:35:23 +0000 (06:35 -0400)]
assistant: Drop hardcoded padding

This means the pages themselves will be responsible for setting
suitable padding.

https://bugzilla.gnome.org/show_bug.cgi?id=750631

10 years agoFixes to Catalan translation
Jordi Mas [Sun, 14 Jun 2015 06:32:03 +0000 (08:32 +0200)]
Fixes to Catalan translation

10 years agoOnly build testfontchooserdialog on linux
Matthias Clasen [Sun, 14 Jun 2015 03:00:41 +0000 (23:00 -0400)]
Only build testfontchooserdialog on linux

We are using this to test pango functionality that
uses fontconfig apis, so this doesn't build on OS X
or Windows anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=750892

10 years agocolor editor: make popups toggleable
Matthias Clasen [Sun, 14 Jun 2015 02:32:05 +0000 (22:32 -0400)]
color editor: make popups toggleable

The popups on the color editor are somewhat hard to get rid of.
Arrange things so that clicking the same control again dismisses
the current popup.

10 years agoDon't show a menu on the color editor swatch
Matthias Clasen [Sun, 14 Jun 2015 01:57:07 +0000 (21:57 -0400)]
Don't show a menu on the color editor swatch

There's nothing to customize here, so no need to show a menu.

10 years agoAdd a way to avoid menu on color swatches
Matthias Clasen [Sun, 14 Jun 2015 01:56:41 +0000 (21:56 -0400)]
Add a way to avoid menu on color swatches

10 years agoAvoid uninitialized variables
Matthias Clasen [Sat, 13 Jun 2015 21:57:19 +0000 (17:57 -0400)]
Avoid uninitialized variables

clang complains that these may be used uninitialized.

10 years agoentry: Drop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:57:09 +0000 (17:57 -0400)]
entry: Drop an unused variable

10 years agoDrop an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:56:55 +0000 (17:56 -0400)]
Drop an unused variable

10 years agoRemove unused variables
Matthias Clasen [Sat, 13 Jun 2015 21:49:54 +0000 (17:49 -0400)]
Remove unused variables

10 years agoEnsure a variable is initialized
Matthias Clasen [Sat, 13 Jun 2015 21:49:20 +0000 (17:49 -0400)]
Ensure a variable is initialized

clang complained about transient_for being used uninitialized.

10 years agoRemove an unused variable
Matthias Clasen [Sat, 13 Jun 2015 21:49:06 +0000 (17:49 -0400)]
Remove an unused variable

10 years agobroadway: Avoid compiler warnings
Matthias Clasen [Sat, 13 Jun 2015 21:47:56 +0000 (17:47 -0400)]
broadway: Avoid compiler warnings

clang doesn't like self-assignment.

10 years agoGtkColorEditor: Remove old todo
Matthias Clasen [Sat, 13 Jun 2015 20:57:32 +0000 (16:57 -0400)]
GtkColorEditor: Remove old todo

Most of this is done, and the rest will not happen because
of this note.

10 years agowidget-factory: More popover examples
Matthias Clasen [Sat, 13 Jun 2015 17:45:57 +0000 (13:45 -0400)]
widget-factory: More popover examples

Add an example for text input in a popover. This leads to nested
popovers with touch selection, and does not currently work.

10 years agowidget-factory: Add horizontally linked entries
Matthias Clasen [Sat, 13 Jun 2015 16:02:33 +0000 (12:02 -0400)]
widget-factory: Add horizontally linked entries

It happens in some places, so artists need an example to
make it look good.

10 years agoFix 'void function should not return void expression' warning for clang
Ting-Wei Lan [Sat, 13 Jun 2015 05:45:57 +0000 (13:45 +0800)]
Fix 'void function should not return void expression' warning for clang

https://bugzilla.gnome.org/show_bug.cgi?id=750888

10 years agoFix return value error in _gtk_text_handle_set_direction
Ting-Wei Lan [Sat, 13 Jun 2015 05:44:24 +0000 (13:44 +0800)]
Fix return value error in _gtk_text_handle_set_direction

https://bugzilla.gnome.org/show_bug.cgi?id=750888

10 years agoRedo font map support in GtkFontChooser
Matthias Clasen [Sat, 13 Jun 2015 03:55:30 +0000 (23:55 -0400)]
Redo font map support in GtkFontChooser

We can't add properties to the interface, since it breaks
3rd party implementations of the GtkFontChooser interface.
These exist, for example in gnumeric.

So, instead of a new property, add getter/setter vfuncs.

10 years agofontchooser: Don't cause "row-changed" signal in cell data func
Benjamin Otte [Fri, 12 Jun 2015 19:23:34 +0000 (21:23 +0200)]
fontchooser: Don't cause "row-changed" signal in cell data func

The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.

This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.

This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197267

10 years agopopover: Avoid hiding modal popovers if another popover is taking focus
Carlos Garnacho [Fri, 12 Jun 2015 13:05:33 +0000 (15:05 +0200)]
popover: Avoid hiding modal popovers if another popover is taking focus

Due to popover modality itself, there's quite high chances the popover
stealing focus has been triggered from within, so stay friendly to it.
Hiding the popover here will only hide the grabbing popover too if this
happens.

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agowindow: Avoid rising the window of already shown popovers
Carlos Garnacho [Fri, 12 Jun 2015 13:03:41 +0000 (15:03 +0200)]
window: Avoid rising the window of already shown popovers

This breaks stacking, as popovers are repositioned sort of frequently
(even more after show/hide animations).

https://bugzilla.gnome.org/show_bug.cgi?id=750741

10 years agoreftests: fix style class syntax in CSS file
Cosimo Cecchi [Thu, 11 Jun 2015 03:21:57 +0000 (20:21 -0700)]
reftests: fix style class syntax in CSS file

Fixes reftests.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agotestsuite: add a test for non-square symbolic icons
Cosimo Cecchi [Thu, 11 Jun 2015 03:52:14 +0000 (20:52 -0700)]
testsuite: add a test for non-square symbolic icons

To verify the previous fix.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agoicontheme: don't modify symbolic SVG dimensions when recoloring
Cosimo Cecchi [Mon, 8 Jun 2015 23:35:31 +0000 (16:35 -0700)]
icontheme: don't modify symbolic SVG dimensions when recoloring

When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.

https://bugzilla.gnome.org/show_bug.cgi?id=750605

10 years agorecent chooser: Make it expand
Matthias Clasen [Fri, 12 Jun 2015 12:26:18 +0000 (08:26 -0400)]
recent chooser: Make it expand

It is expected that the list fills the available space.

https://bugzilla.gnome.org/show_bug.cgi?id=750690

10 years agoentry: Ensure we unset the magnifier widget on ::destroy
Carlos Garnacho [Fri, 12 Jun 2015 11:30:34 +0000 (13:30 +0200)]
entry: Ensure we unset the magnifier widget on ::destroy

Otherwise there's dangling signal handlers which cause warnings
at the time we attempt to disconnect these.

10 years agotextview: Set handles' mode to "none" if showing the bubble
Carlos Garnacho [Fri, 12 Jun 2015 11:04:45 +0000 (13:04 +0200)]
textview: Set handles' mode to "none" if showing the bubble

show_or_hide_handles() tries to disable visibility when the popover is
shown, although it triggers a bit late, and lets the handles flash briefly
if both popover and handles try to show at the same time (eg. when
pressing on the selection of a previously unfocused textview, the handles
were previously hidden, so they try to show again on focus in).

10 years agotextview: Perform tougher handle visibility checks after hiding the popover
Carlos Garnacho [Fri, 12 Jun 2015 10:45:03 +0000 (12:45 +0200)]
textview: Perform tougher handle visibility checks after hiding the popover

The handles might fall outside the visible area, and shouldn't be shown
then. Just call gtk_text_view_update_handles() which will perform these
checks, and keep the handle conveniently hidden.

This was leading to unexpectedly visible handles (and in the
wrong/previous position, the handle code doesn't relocate the widget
it's about to hide) when "select all" was selected in the popover on
a textview needing scrollbars.
and extending the selection beyond the view above and/or below.